package com.acquisition.service.impl;

import com.acquisition.entity.SysRequestPathPermissionRelation;
import com.acquisition.mapper.SysRequestPathPermissionRelationMapper;
import com.acquisition.service.SysRequestPathPermissionRelationService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Jay Chou
 * @Description 路径权限关联表(SysRequestPathPermissionRelation)表服务实现类
 * @Date 2023-04-12 12:28
 **/
@Service("sysRequestPathPermissionRelationService")
public class SysRequestPathPermissionRelationServiceImpl implements SysRequestPathPermissionRelationService {
    @Resource
    private SysRequestPathPermissionRelationMapper sysRequestPathPermissionRelationMapper;

    /**
     * @Author Jay Chou
     * @Description 通过id查询接口路径权限信息
     * @Date 2023-04-12 14:25
     * @param id
     * @return com.acquisition.entity.SysRequestPathPermissionRelation
     **/
    @Override
    public SysRequestPathPermissionRelation queryById(Integer id) {
        return this.sysRequestPathPermissionRelationMapper.queryById();
    }

    /**
     * @Author Jay Chou
     * @Description 通过实体作为筛选条件查询接口路径权限列表
     * @Date 2023-04-12 14:25
     * @param sysRequestPathPermissionRelation
     * @return java.util.List<com.acquisition.entity.SysRequestPathPermissionRelation>
     **/
    @Override
    public List<SysRequestPathPermissionRelation> queryRequestPathPermissionRelationList(SysRequestPathPermissionRelation sysRequestPathPermissionRelation) {
        return sysRequestPathPermissionRelationMapper.queryRequestPathPermissionRelationList(sysRequestPathPermissionRelation);
    }

    /**
     * @Author Jay Chou
     * @Description 新增接口路径权限
     * @Date 2023-04-12 14:24
     * @param sysRequestPathPermissionRelation
     * @return int
     **/
    @Override
    public int insert(SysRequestPathPermissionRelation sysRequestPathPermissionRelation) {
        return sysRequestPathPermissionRelationMapper.insert(sysRequestPathPermissionRelation);
    }

    /**
     * @Author Jay Chou
     * @Description 修改接口路径权限
     * @Date 2023-04-12 14:24
     * @param sysRequestPathPermissionRelation
     * @return int
     **/
    @Override
    public int update(SysRequestPathPermissionRelation sysRequestPathPermissionRelation) {
        return sysRequestPathPermissionRelationMapper.update(sysRequestPathPermissionRelation);
    }

    /**
     * @Author Jay Chou
     * @Description 删除接口路径权限
     * @Date 2023-04-12 14:23
     * @param id
     * @return int
     **/
    @Override
    public int deleteById(Integer id) {
        return sysRequestPathPermissionRelationMapper.deleteById();
    }

}